cmake_minimum_required(VERSION 3.1.0)
project(untitled2)

set(CMAKE_CXX_STANDARD 11)
include_directories(/usr/include/mariadb/)
link_directories(/usr/lib/arm-linux-gnueabihf)

SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-pthread")
# set up target

add_executable(untitled2 main.cpp chatroom.cpp chatroom.h db_manager.cpp db_manager.h)
target_link_libraries(untitled2 /usr/lib/arm-linux-gnueabihf/libmariadb.so)